package com.petter.lock.juc.semaphore;

import java.util.concurrent.Semaphore;

/**
 * @author : GD
 * @date :2021/12/20 : 22:57
 */
public class SemaphoreRelease {

    public static void main(String[] args) throws InterruptedException {
        Semaphore semaphore = new Semaphore(1);
//        semaphore.release();
        semaphore.acquire(2);
    }
}
